﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_Dic_NMT_SignUp 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_Dic_NMT_SignUp : Entity
    {
        public TB_Dic_NMT_SignUp() : base("TB_Dic_NMT_SignUp") { _NativePlaceNO = Guid.NewGuid().ToString(); }

        #region Model
        private string _NativePlaceNO;
        private string _NativePlaceName;
        private int? _NMT_SignUp_Len;
        private int? _Index_Begin;
        private int? _Index_End;
        private string _Mask;
        /// <summary>
        /// 主键
        /// </summary>
        public string NativePlaceNO
        {
            get { return _NativePlaceNO; }
            set
            {
                this.OnPropertyValueChange(_.NativePlaceNO, _NativePlaceNO, value);
                this._NativePlaceNO = value;
            }
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string NativePlaceName
        {
            get { return _NativePlaceName; }
            set
            {
                this.OnPropertyValueChange(_.NativePlaceName, _NativePlaceName, value);
                this._NativePlaceName = value;
            }
        }
        /// <summary>
        /// 长度
        /// </summary>
        public int? NMT_SignUp_Len
        {
            get { return _NMT_SignUp_Len; }
            set
            {
                this.OnPropertyValueChange(_.NMT_SignUp_Len, _NMT_SignUp_Len, value);
                this._NMT_SignUp_Len = value;
            }
        }
        /// <summary>
        /// 开始长度
        /// </summary>
        public int? Index_Begin
        {
            get { return _Index_Begin; }
            set
            {
                this.OnPropertyValueChange(_.Index_Begin, _Index_Begin, value);
                this._Index_Begin = value;
            }
        }
        /// <summary>
        /// 结束长度
        /// </summary>
        public int? Index_End
        {
            get { return _Index_End; }
            set
            {
                this.OnPropertyValueChange(_.Index_End, _Index_End, value);
                this._Index_End = value;
            }
        }
        /// <summary>
        /// 匹配项内容
        /// </summary>
        public string Mask
        {
            get { return _Mask; }
            set
            {
                this.OnPropertyValueChange(_.Mask, _Mask, value);
                this._Mask = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.NativePlaceNO};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.NativePlaceNO,
				_.NativePlaceName,
				_.NMT_SignUp_Len,
				_.Index_Begin,
				_.Index_End,
				_.Mask};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._NativePlaceNO,
				this._NativePlaceName,
				this._NMT_SignUp_Len,
				this._Index_Begin,
				this._Index_End,
				this._Mask};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._NativePlaceNO = DataUtils.ConvertValue<string>(reader["NativePlaceNO"]);
            this._NativePlaceName = DataUtils.ConvertValue<string>(reader["NativePlaceName"]);
            this._NMT_SignUp_Len = DataUtils.ConvertValue<int?>(reader["NMT_SignUp_Len"]);
            this._Index_Begin = DataUtils.ConvertValue<int?>(reader["Index_Begin"]);
            this._Index_End = DataUtils.ConvertValue<int?>(reader["Index_End"]);
            this._Mask = DataUtils.ConvertValue<string>(reader["Mask"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._NativePlaceNO = DataUtils.ConvertValue<string>(row["NativePlaceNO"]);
            this._NativePlaceName = DataUtils.ConvertValue<string>(row["NativePlaceName"]);
            this._NMT_SignUp_Len = DataUtils.ConvertValue<int?>(row["NMT_SignUp_Len"]);
            this._Index_Begin = DataUtils.ConvertValue<int?>(row["Index_Begin"]);
            this._Index_End = DataUtils.ConvertValue<int?>(row["Index_End"]);
            this._Mask = DataUtils.ConvertValue<string>(row["Mask"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Dic_NMT_SignUp");
            /// <summary>
            /// 主键
            /// </summary>
            public readonly static Field NativePlaceNO = new Field("NativePlaceNO", "TB_Dic_NMT_SignUp", "主键");
            /// <summary>
            /// 名称
            /// </summary>
            public readonly static Field NativePlaceName = new Field("NativePlaceName", "TB_Dic_NMT_SignUp", "名称");
            /// <summary>
            /// 长度
            /// </summary>
            public readonly static Field NMT_SignUp_Len = new Field("NMT_SignUp_Len", "TB_Dic_NMT_SignUp", "长度");
            /// <summary>
            /// 开始长度
            /// </summary>
            public readonly static Field Index_Begin = new Field("Index_Begin", "TB_Dic_NMT_SignUp", "开始长度");
            /// <summary>
            /// 结束长度
            /// </summary>
            public readonly static Field Index_End = new Field("Index_End", "TB_Dic_NMT_SignUp", "结束长度");
            /// <summary>
            /// 匹配项内容
            /// </summary>
            public readonly static Field Mask = new Field("Mask", "TB_Dic_NMT_SignUp", "匹配项内容");
        }
        #endregion


    }
}

